package com.feidee.data.report.util;

import com.feidee.data.report.model.ReportConfiguration;

import java.util.ArrayList;
import java.util.Comparator;

public class ReportMetadataComparator implements Comparator<ArrayList<ReportConfiguration>> {


	@Override
	public int compare(ArrayList<ReportConfiguration> l1, ArrayList<ReportConfiguration> l2) {

		int pr1 = l1.get(0).getRunPriority();
		int pr2 = l2.get(0).getRunPriority();

		return pr1 > pr2 ? 1 : pr1 < pr2 ? -1 : 0;
	}
}
